<div class="actions view">
<h2><?php  __('Action');?></h2>
	<dl><?php $i = 0; $class = ' class="altrow"';?>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Id'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $action['Action']['id']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Name'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $action['Action']['name']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Action Type'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $this->Html->link($action['ActionType']['name'], array('controller' => 'action_types', 'action' => 'view', $action['ActionType']['id'])); ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Label'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $action['Action']['label']; ?>
			&nbsp;
		</dd>
	</dl>
</div>
<div class="actions">
	<h3><?php __('Actions'); ?></h3>
	<ul>
		<li><?php echo $this->Html->link(sprintf(__('Edit %s', true), __('Action', true)), array('action' => 'edit', $action['Action']['id'])); ?> </li>
		<li><?php echo $this->Html->link(sprintf(__('Delete %s', true), __('Action', true)), array('action' => 'delete', $action['Action']['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $action['Action']['id'])); ?> </li>
		<li><?php echo $this->Html->link(sprintf(__('List %s', true), __('Actions', true)), array('action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(sprintf(__('New %s', true), __('Action', true)), array('action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(sprintf(__('List %s', true), __('Action Types', true)), array('controller' => 'action_types', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(sprintf(__('New %s', true), __('Action Type', true)), array('controller' => 'action_types', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(sprintf(__('List %s', true), __('Action Events', true)), array('controller' => 'action_events', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(sprintf(__('New %s', true), __('Action Event', true)), array('controller' => 'action_events', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(sprintf(__('List %s', true), __('Action States', true)), array('controller' => 'action_states', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(sprintf(__('New %s', true), __('Action State', true)), array('controller' => 'action_states', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(sprintf(__('List %s', true), __('Parameters', true)), array('controller' => 'parameters', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(sprintf(__('New %s', true), __('Parameter', true)), array('controller' => 'parameters', 'action' => 'add')); ?> </li>
	</ul>
</div>
<div class="related">
	<h3><?php printf(__('Related %s', true), __('Action Events', true));?></h3>
	<?php if (!empty($action['ActionEvent'])):?>
	<table cellpadding = "0" cellspacing = "0">
	<tr>
		<th><?php __('Id'); ?></th>
		<th><?php __('Priority'); ?></th>
		<th><?php __('Event Id'); ?></th>
		<th><?php __('Action Id'); ?></th>
		<th class="actions"><?php __('Actions');?></th>
	</tr>
	<?php
		$i = 0;
		foreach ($action['ActionEvent'] as $actionEvent):
			$class = null;
			if ($i++ % 2 == 0) {
				$class = ' class="altrow"';
			}
		?>
		<tr<?php echo $class;?>>
			<td><?php echo $actionEvent['id'];?></td>
			<td><?php echo $actionEvent['priority'];?></td>
			<td><?php echo $actionEvent['event_id'];?></td>
			<td><?php echo $actionEvent['action_id'];?></td>
			<td class="actions">
				<?php echo $this->Html->link(__('View', true), array('controller' => 'action_events', 'action' => 'view', $actionEvent['id'])); ?>
				<?php echo $this->Html->link(__('Edit', true), array('controller' => 'action_events', 'action' => 'edit', $actionEvent['id'])); ?>
				<?php echo $this->Html->link(__('Delete', true), array('controller' => 'action_events', 'action' => 'delete', $actionEvent['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $actionEvent['id'])); ?>
			</td>
		</tr>
	<?php endforeach; ?>
	</table>
<?php endif; ?>

	<div class="actions">
		<ul>
			<li><?php echo $this->Html->link(sprintf(__('New %s', true), __('Action Event', true)), array('controller' => 'action_events', 'action' => 'add'));?> </li>
		</ul>
	</div>
</div>
<div class="related">
	<h3><?php printf(__('Related %s', true), __('Action States', true));?></h3>
	<?php if (!empty($action['ActionState'])):?>
	<table cellpadding = "0" cellspacing = "0">
	<tr>
		<th><?php __('Id'); ?></th>
		<th><?php __('Priority'); ?></th>
		<th><?php __('State Id'); ?></th>
		<th><?php __('Action Id'); ?></th>
		<th class="actions"><?php __('Actions');?></th>
	</tr>
	<?php
		$i = 0;
		foreach ($action['ActionState'] as $actionState):
			$class = null;
			if ($i++ % 2 == 0) {
				$class = ' class="altrow"';
			}
		?>
		<tr<?php echo $class;?>>
			<td><?php echo $actionState['id'];?></td>
			<td><?php echo $actionState['priority'];?></td>
			<td><?php echo $actionState['state_id'];?></td>
			<td><?php echo $actionState['action_id'];?></td>
			<td class="actions">
				<?php echo $this->Html->link(__('View', true), array('controller' => 'action_states', 'action' => 'view', $actionState['id'])); ?>
				<?php echo $this->Html->link(__('Edit', true), array('controller' => 'action_states', 'action' => 'edit', $actionState['id'])); ?>
				<?php echo $this->Html->link(__('Delete', true), array('controller' => 'action_states', 'action' => 'delete', $actionState['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $actionState['id'])); ?>
			</td>
		</tr>
	<?php endforeach; ?>
	</table>
<?php endif; ?>

	<div class="actions">
		<ul>
			<li><?php echo $this->Html->link(sprintf(__('New %s', true), __('Action State', true)), array('controller' => 'action_states', 'action' => 'add'));?> </li>
		</ul>
	</div>
</div>
<div class="related">
	<h3><?php printf(__('Related %s', true), __('Parameters', true));?></h3>
	<?php if (!empty($action['Parameter'])):?>
	<table cellpadding = "0" cellspacing = "0">
	<tr>
		<th><?php __('Id'); ?></th>
		<th><?php __('Name'); ?></th>
		<th><?php __('Value'); ?></th>
		<th><?php __('Order'); ?></th>
		<th><?php __('Action Id'); ?></th>
		<th><?php __('Parameter Type Id'); ?></th>
		<th><?php __('Is Array'); ?></th>
		<th class="actions"><?php __('Actions');?></th>
	</tr>
	<?php
		$i = 0;
		foreach ($action['Parameter'] as $parameter):
			$class = null;
			if ($i++ % 2 == 0) {
				$class = ' class="altrow"';
			}
		?>
		<tr<?php echo $class;?>>
			<td><?php echo $parameter['id'];?></td>
			<td><?php echo $parameter['name'];?></td>
			<td><?php echo $parameter['value'];?></td>
			<td><?php echo $parameter['order'];?></td>
			<td><?php echo $parameter['action_id'];?></td>
			<td><?php echo $parameter['parameter_type_id'];?></td>
			<td><?php echo $parameter['is_array'];?></td>
			<td class="actions">
				<?php echo $this->Html->link(__('View', true), array('controller' => 'parameters', 'action' => 'view', $parameter['id'])); ?>
				<?php echo $this->Html->link(__('Edit', true), array('controller' => 'parameters', 'action' => 'edit', $parameter['id'])); ?>
				<?php echo $this->Html->link(__('Delete', true), array('controller' => 'parameters', 'action' => 'delete', $parameter['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $parameter['id'])); ?>
			</td>
		</tr>
	<?php endforeach; ?>
	</table>
<?php endif; ?>

	<div class="actions">
		<ul>
			<li><?php echo $this->Html->link(sprintf(__('New %s', true), __('Parameter', true)), array('controller' => 'parameters', 'action' => 'add'));?> </li>
		</ul>
	</div>
</div>
